package datastructures.stack;

/**
 * @author hck
 */
public class TestArrayStack {
    public static void main(String[] args) {
        ArrayStack arrayStack = new ArrayStack(10);
        for (int i = 0; i < 9; i++) {
            arrayStack.push(i);
        }
        arrayStack.print();

        System.out.println("stack pop :" + arrayStack.pop());
        System.out.println("stack pop :" + arrayStack.pop());

        arrayStack.print();
        arrayStack.push(8);
        arrayStack.push(9);
        arrayStack.push(10);
        arrayStack.print();
    }
}
